﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="addresslist.aspx.cs" Inherits="lgweb.inside.office.addresslist" %>

<%@ Register Src="~/control/inside/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="~/control/inside/pager.ascx" TagName="pager" TagPrefix="uc2" %>
<%@ Register Src="~/control/inside/footer.ascx" TagName="footer" TagPrefix="uc3" %>
<%@ Register Src="~/control/inside/Usermenu.ascx" TagName="Usermenu" TagPrefix="uc4" %>
<%@ Register Src="~/control/inside/menu/office.ascx" TagName="office" TagPrefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>通讯录－办公中心-龙院内部工作平台</title>
    <link href="/css/inside/base.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <uc1:header ID="header1" runat="server" TagIndex="2" />
    <div class="content clear">
        <div class="con231 g-mr-18">
            <uc5:office ID="office1" runat="server" TagIndex="9" />
            <uc4:Usermenu ID="Usermenu1" runat="server" />
        </div>
        <div class="con951">
            <div class="box-red">
                <p class="b-r-top">
                </p>
                <div class="b-r-con">
                    <div class="g-here">
                        当前位置：<a href="/inside/index.aspx">首页</a> > <a href="/inside/office/index.aspx">办公中心</a>
                        > 通讯录</div>
                    <div class="g-search">
                        <label>
                            关键字:</label><input type="text" value="" id="txtKeyword" class="text" runat="server" />
                        <input type="button" value="搜索" class="g-btn-red" onclick="search();" />
                    </div>
                    <table class="g-grid g-mt-30" cellspacing="1" cellpadding="0">
                        <tr>
                            <th width="80">
                                部门
                            </th>
                            <th width="80">
                                姓名
                            </th>
                            <th width="120">
                                手机号码
                            </th>
                            <th width="120">
                                电话
                            </th>
                            <th width="60">
                                分机号
                            </th>
                            <th width="100">
                                房号
                            </th>
                        </tr>
                        <asp:Repeater runat="Server" ID="rptAddressList">
                            <ItemTemplate>
                                <tr  class="<%# Container.ItemIndex%2==1?"bg":"" %>">
                                    <td align="center">
                                        <%#Eval("dept_name")%>
                                    </td>
                                    <td align="center">
                                        <%#Eval("name")%>
                                    </td>
                                    <td align="center">
                                        <%#Eval("mobile")%>
                                    </td>
                                    <td align="center">                                      
                                        <%#Eval("tel2")%>
                                    </td>
                                    <td align="center">
                                        <%#Eval("tel1")%>                                       
                                    </td>
                                    <td align="center">
                                        <%#Eval("roomno")%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                    <div>
                    <uc2:pager ID="pager1" runat="server" />
                    </div>
                </div>
                <p class="b-r-bottom"></p>
            </div>            
        </div>
    </div>
    <uc3:footer ID="footer1" runat="server" />
    <input type="hidden" id="hdOADomain" runat="server" value="lgfyoa" />
    </form>
</body>
</html>
<script type="text/javascript">
    function search() {
        window.location.href = "/inside/office/addresslist.aspx?keyword=" + encodeURIComponent(document.getElementById("txtKeyword").value);
    }
</script>